.chat-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.chat-toolbar {
  background-color: #fff;
  padding: 12px 24px;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  z-index: 10;
  flex-shrink: 0;
  height: 64px;
  display: flex;
  align-items: center;
}

.chat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  height: calc(100vh - 64px);
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
  background: linear-gradient(to bottom, #f5f5f5, #fafafa);
  height: calc(100% - 120px);
}

.messages-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.welcome-message {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  background-color: #fff;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.welcome-message h2 {
  color: #1890ff;
  margin-bottom: 16px;
  font-size: 24px;
}

.welcome-message p {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.6;
}

.input-container {
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
  z-index: 10;
  min-height: 120px;
  max-height: 200px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .chat-toolbar {
    padding: 8px 16px;
  }
  
  .messages-container {
    padding: 0 16px;
  }
  
  .messages-list {
    padding: 16px 0;
  }
  
  .welcome-message {
    margin: 20px auto;
    padding: 40px 16px;
  }
  
  .welcome-message h2 {
    font-size: 20px;
  }
  
  .welcome-message p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .chat-toolbar {
    padding: 8px 12px;
  }
  
  .messages-container {
    padding: 0 12px;
  }
  
  .welcome-message {
    padding: 30px 12px;
  }
}

/* 消息气泡动画 */
.message-bubble {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 滚动条样式优化 */
.messages-container::-webkit-scrollbar {
  width: 8px;
}

.messages-container::-webkit-scrollbar-track {
  background: transparent;
}

.messages-container::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.3);
}
